package com.bjpoweernode.service.impl;

import com.bjpoweernode.ba01.Student;
import com.bjpoweernode.dao.UserDao;
import com.bjpoweernode.service.UserService;

public class UserserviceImpl implements UserService {
    //引用类型,在xml文件中给属性赋值,要求属性要有set方法
    private UserDao userDao =null;

    public void setUserDao(UserDao userDao) {
        this.userDao=userDao;
    }


    @Override
    public void addUser(Student student) {
        System.out.println("add用户信息..");
        userDao.updateUser(student);
        System.out.println(student);
    }
}
